
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>列表</title>
    {include file="include/top"}
</head>
<body>

<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto">

        <table class="layui-table" lay-data="{height:0, url:'/service/gasList?inTips={$tips}', page:true, id:'idTest',toolbar: '#toolbarDemo'}" lay-filter="demo">
            <thead>
            <tr>
                <th lay-data="{field:'id',  sort: true, fixed: true,width:80,checkbox:true}">ID</th>
                <th lay-data="{field:'id',  sort: true, fixed: true,width:80}">ID</th>
                <th lay-data="{field:'tipsID'}">标签</th>
                <th lay-data="{field:'province'}">省份</th>
                <th lay-data="{field:'city'}">城市</th>
                <th lay-data="{field:'country'}">区县</th>
                <th lay-data="{field:'fromID'}">渠道</th>
                <th lay-data="{field:'gasID'}">三方ID</th>
                <th lay-data="{field:'name'}">名称</th>
                <th lay-data="{field:'logo_small',templet:function(d){
                    if(d.logo_small){
                        return '<img src='+d.logo_small+' width=30>';
                    }else{
                        return '';
                    }

                }}">Logo</th>
                <th lay-data="{field:'localStatus',templet:function(d){
                    if(d.localStatus==1)
                        return '正常';
                    else
                        return '暂停';
                    }
                }
                ">状态</th>
                <th lay-data="{field:'subPrice',edit:true}">让利%✎</th>
            </tr>
            </thead>
        </table>
    </div>
</div>
{include file="include/js"}
<script>
    var pathid=0;
    layui.config({
        base: '/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'contlist', 'table', 'dropdown'], function(){
        var table = layui.table;
        var $ = layui.$;
        var form = layui.form;
        var dropdown = layui.dropdown
        var pathid=0;
        var id=0;

    });
</script>

</body>
</html>
